package demo3;

public class test {
    public static void main(String[] args){
        f2();
    }

    public static void f4(){
        int num1=1;
        int num2=0;
        int ret= 0;
        ret = num1/num2;
        System.out.println(ret);
    }

    public static void f2() throws ArithmeticException{
        int num1=1;
        int num2=0;
        int ret= 0;
        try {
            ret = num1/num2;
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(ret);
    }
}
